import math

# human calculate
def estimated(my_input):
    size = my_input[0]
    number = my_input[1]
    time = my_input[2]

    if (number == None) and (time != None):
        number = math.ceil(size * 80 / time)
        print('project size is: %.1f, if want to finish at: %.1f, need man numeber is: %.1f' % (size,time,number))
    elif (number != None) and (time == None):
        time = size * 80 / number
        print('project size is: %.1f, need person%d, need work number is: %.1f' %(size, number, time))

# input
def my_input():
    choice = input('please selct type: 1(----hours) 2(----persons)')
    if choice == 1:
        size = float(input('please enter project size:'))
        number = int(input('please eneter person:'))
        time = None
        return  size,number,time
    elif choice == 2:
        size = float(input('please enter project size:'))
        number = None
        time = int(input('please enter time:'))
        return size, number, time

def start():
    inputData = my_input()
    estimated(inputData)

start()


new_name = input('please enter the book name:')


